import { GaRegExp, getRule } from '../rule';

const numberRule = getRule("numberRule");

const rule = new GaRegExp(["^", numberRule, "$"]);

console.log(rule.RegExpList.origin);
console.log(rule.RegExpList.list);

console.log(rule.Test(`012`)); // false
console.log(rule.Test(`100`)); // true
console.log(rule.Test(`100.`)); // true
console.log(rule.Test(`100.0`)); // true
console.log(rule.Test(`100.00000090`)); // true
console.log(rule.Test(`100.0000.`)); // false
debugger;
